﻿using HomeCloudStorageSystem.Models;
using Microsoft.EntityFrameworkCore;

namespace HomeCloudStorageSystem.DataBase
{
    public class AppDbContext: DbContext
    {
        public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
        {
            SQLitePCL.Batteries.Init();
        }
        public DbSet<FileUploagLog> FileUploagLog { get; set; }
        public DbSet<User> Users { get; set; }
        public DbSet<FileInfos> FileInfo { get; set; }
        public DbSet<FileDirectory> FileDirectory { get; set; }
        public DbSet<Diary> Diary { get; set; }
    }
}
